﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UndoRedo
{
    /// <summary>
    /// Contains the logic for undoing/redoing an operation. Designed to take a reference to a target so that a hard reference to that target does not need to be created (lowers the chances of memory leaks).
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IChangeInformation<T>
    {
        void Undo(T target);
        void Redo(T target);
    }
}
